package kgc.crm.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 字段操作记录表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "kgc_crm_crm_action_record")
public class ActionRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作人ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 类型
     */
    @TableField(value = "types")
    private String types;

    /**
     * 被操作对象ID
     */
    @TableField(value = "action_id")
    private Integer actionId;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    public static final String COL_ID = "id";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_TYPES = "types";

    public static final String COL_ACTION_ID = "action_id";

    public static final String COL_CONTENT = "content";
}